package org.dromara.system.domain.bo;

import org.dromara.system.domain.WbDistricts;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

import java.io.Serializable;

/**
 * 县区业务对象 wb_districts
 *
 * @author Lion Li
 * @date 2024-05-28
 */
@Data
@AutoMapper(target = WbDistricts.class, reverseConvertGenerate = false)
public class WbDistrictsBo implements Serializable {

    /**
     * 区县ID
     */
    @NotNull(message = "区县ID不能为空", groups = { EditGroup.class })
    private Long districtId;

    /**
     * 区县名称
     */
    @NotBlank(message = "区县名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String districtName;

    /**
     * 所属城市
     */
    @NotNull(message = "所属城市不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long cityId;

    /**
     * 邮政编码
     */
    private String zipCode;;
}
